<?php if ($this->pageCount>1): ?> 
<div class="paginationControl">
    <!-- Previous page link -->
        <?php if (isset($this->previous)): ?>
    <a href="?page=<?=$this->previous?>">&lt; Previous</a> |
        <?php else: ?>
    <span class="disabled">&lt; Previous</span> |
        <?php endif; ?>

    <!-- Next page link -->
        <?php if (isset($this->next)): ?>
    <a href="?page=<?=$this->next?>">Next &gt;</a>
        <?php else: ?>
    <span class="disabled">Next &gt;</span>
        <?php endif; ?>
</div> 
<?php endif; ?>